﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using HodelBll;
using IHodelBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace HotelUI.Controllers
{
    public class FinanceController : Controller
    {
        IFinanceBLL BLL;
        public FinanceController(IFinanceBLL bll)
        {
            BLL = bll;
        }
        public List<HuiZone> GetZongInfos()
        {
            List<HuiZone> list = BLL.ShowShouru();
            return list;
        }
        public IActionResult HuiZongInfo()
        {
            return View();
        }
        public IActionResult AddHuiZong()
        {
            return View();
        }
        [HttpPost]
        public int Add(HuiZone s)
        {
            return BLL.AddShouru(s);
        }
        public int DelHuiZong(int id)
        {
            return BLL.DelHuiZong(id);
        }
        public IActionResult XiangQin()
        {
            return View();
        }
        public HuiZone Detial(int id)
        {
            return BLL.Detial(id);
        }

    }
}
